cmake_minimum_required(VERSION 3.13)
## config 
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED On)

project(MeshInterpolate CXX)

set(LIBRARY_OUTPUT_PATH ../bin)
set(EXECUTABLE_OUTPUT_PATH ../bin)

set(CMAKE_CXX_FLAGS_RELEASE "/Ox")

add_compile_options(/source-charset:utf-8 /execution-charset:utf-8)


## add lib 
list(APPEND MESHINTERPOLATE_INCLUDE_DIR ./src/lib)
file(GLOB_RECURSE MESHINTERPOLATE_SRC  ./src/lib/*.cpp)
file(GLOB_RECURSE MESHINTERPOLATE_INCLUDE  ./src/lib/*.h ./src/lib/*.hpp)


#message(${MESHINTERPOLATE_SRC})
#message(${MESHINTERPOLATE_INCLUDE})

add_library(MeshInterpolation STATIC ${MESHINTERPOLATE_SRC})
target_include_directories(MeshInterpolation PUBLIC ${MESHINTERPOLATE_INCLUDE_DIR})
target_link_libraries(MeshInterpolation PUBLIC)

#------Target include file------#



#-------Target link lib--------#



#------Target bin-----#
# add_executable(GRDECLInterpolate ./src/app/GRDECLInterpolate.cpp)
# target_include_directories(GRDECLInterpolate PUBLIC MeshInterpolation)
# target_link_libraries(GRDECLInterpolate PUBLIC MeshInterpolation)



# add_executable(PointMeshInterpolate ./src/app/PointMeshInterpolate.cpp)
# target_include_directories(PointMeshInterpolate PUBLIC MeshInterpolation)
# target_link_libraries(PointMeshInterpolate PUBLIC MeshInterpolation)


# add_executable(GRDECLDecompose ./src/app/GRDECLDecompose.cpp)
# target_include_directories(GRDECLDecompose PUBLIC MeshInterpolation)
# target_link_libraries(GRDECLDecompose PUBLIC MeshInterpolation)


add_executable(GRDECLExtend ./src/app/GRDECLExtend.cpp) 
target_include_directories(GRDECLExtend PUBLIC MeshInterpolation)
target_link_libraries(GRDECLExtend PUBLIC MeshInterpolation)

# add_executable(GRDECLExtendB ./src/app/GRDECLExtendB.cpp) 
# target_include_directories(GRDECLExtendB PUBLIC MeshInterpolation)
# target_link_libraries(GRDECLExtendB PUBLIC MeshInterpolation)